package com.ice.manage_course.controller;

import com.ice.api.course.CourseControllerApi;
import com.ice.domain.course.CourseBase;
import com.ice.manage_course.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @version 1.0
 **/
@RestController
@RequestMapping("/course")
public class CourseController implements CourseControllerApi {

    @Autowired
    CourseService courseService;

    /**
     * 查询课程详情
     * @param courseId
     * @return
     */
    @Override
    @GetMapping("/teachplan/list/{courseId}")
    public CourseBase findCourseBaseList(@PathVariable("courseId") String courseId) {
        return courseService.findCourseBaseList(courseId);
    }

}
